.class public Lcom/nemustech/regina/DialogCareSecret;
.super Ljava/lang/Object;
.source "DialogCareSecret.java"


# static fields
.field private static final DIALOG_SECRET_WORKSAPCE_BUTTONS:I = 0x4

.field public static final DIALOG_TYPE_BACKUP_PROGRESS:I = 0x4

.field public static final DIALOG_TYPE_MAX:I = 0x5

.field public static final DIALOG_TYPE_RESTORE_PROGRESS:I = 0x5

.field public static final DIALOG_TYPE_SECRET_CHECK_OLD:I = 0x2

.field public static final DIALOG_TYPE_SECRET_CONFIRM:I = 0x3

.field public static final DIALOG_TYPE_SECRET_WORKSPACE:I = 0x1

.field private static final TAG:Ljava/lang/String; = "DialogCareSecret"

.field private static mHasToggled:Z


# instance fields
.field private mConfirmSecretNumbers:Ljava/lang/String;

.field private mCurrentDialogType:I

.field private mDialogArray:Landroid/util/SparseArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/SparseArray",
            "<",
            "Landroid/app/Dialog;",
            ">;"
        }
    .end annotation
.end field

.field private mLayoutInflater:Landroid/view/LayoutInflater;

.field private mReginaLauncherSettings:Lcom/nemustech/regina/ReginaLauncherSettings;

.field private mResCare:Lcom/nemustech/regina/ResourceCare;

.field private mSecretButtonCancel:Landroid/widget/Button;

.field public mSecretButtonClickListener:Landroid/view/View$OnClickListener;

.field private mSecretButtonDone:Landroid/widget/Button;

.field private mSecretButtons:[Landroid/widget/Button;

.field private mSecretDialogFrame:Lcom/nemustech/regina/SecretDialogFrame;

.field private mSecretDlg:Landroid/app/Dialog;

.field private mSecretNumbers:[I

.field private mSecretNumbersIndex:I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 40
    const/4 v0, 0x0

    sput-boolean v0, Lcom/nemustech/regina/DialogCareSecret;->mHasToggled:Z

    return-void
.end method

.method public constructor <init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V
    .locals 2
    .parameter "reginaLauncherSettings"

    .prologue
    .line 51
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 219
    new-instance v0, Lcom/nemustech/regina/DialogCareSecret$3;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/DialogCareSecret$3;-><init>(Lcom/nemustech/regina/DialogCareSecret;)V

    iput-object v0, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtonClickListener:Landroid/view/View$OnClickListener;

    .line 52
    invoke-virtual {p1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/DialogCareSecret;->mResCare:Lcom/nemustech/regina/ResourceCare;

    .line 53
    iput-object p1, p0, Lcom/nemustech/regina/DialogCareSecret;->mReginaLauncherSettings:Lcom/nemustech/regina/ReginaLauncherSettings;

    .line 54
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/DialogCareSecret;->mLayoutInflater:Landroid/view/LayoutInflater;

    .line 55
    new-instance v0, Landroid/util/SparseArray;

    const/4 v1, 0x5

    invoke-direct {v0, v1}, Landroid/util/SparseArray;-><init>(I)V

    iput-object v0, p0, Lcom/nemustech/regina/DialogCareSecret;->mDialogArray:Landroid/util/SparseArray;

    .line 56
    invoke-virtual {p0}, Lcom/nemustech/regina/DialogCareSecret;->initSecretNumbers()V

    .line 57
    return-void
.end method

.method static synthetic access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;
    .locals 1
    .parameter "x0"

    .prologue
    .line 18
    iget-object v0, p0, Lcom/nemustech/regina/DialogCareSecret;->mReginaLauncherSettings:Lcom/nemustech/regina/ReginaLauncherSettings;

    return-object v0
.end method

.method static synthetic access$100(Lcom/nemustech/regina/DialogCareSecret;)[I
    .locals 1
    .parameter "x0"

    .prologue
    .line 18
    iget-object v0, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretNumbers:[I

    return-object v0
.end method

.method static synthetic access$200(Lcom/nemustech/regina/DialogCareSecret;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 18
    iget-object v0, p0, Lcom/nemustech/regina/DialogCareSecret;->mConfirmSecretNumbers:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$202(Lcom/nemustech/regina/DialogCareSecret;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 18
    iput-object p1, p0, Lcom/nemustech/regina/DialogCareSecret;->mConfirmSecretNumbers:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$300(Lcom/nemustech/regina/DialogCareSecret;[I)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 18
    invoke-direct {p0, p1}, Lcom/nemustech/regina/DialogCareSecret;->clearArray([I)V

    return-void
.end method

.method static synthetic access$400(Lcom/nemustech/regina/DialogCareSecret;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 18
    iget v0, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretNumbersIndex:I

    return v0
.end method

.method static synthetic access$408(Lcom/nemustech/regina/DialogCareSecret;)I
    .locals 2
    .parameter "x0"

    .prologue
    .line 18
    iget v0, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretNumbersIndex:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretNumbersIndex:I

    return v0
.end method

.method static synthetic access$500(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/SecretDialogFrame;
    .locals 1
    .parameter "x0"

    .prologue
    .line 18
    iget-object v0, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDialogFrame:Lcom/nemustech/regina/SecretDialogFrame;

    return-object v0
.end method

.method static synthetic access$600()Z
    .locals 1

    .prologue
    .line 18
    sget-boolean v0, Lcom/nemustech/regina/DialogCareSecret;->mHasToggled:Z

    return v0
.end method

.method static synthetic access$602(Z)Z
    .locals 0
    .parameter "x0"

    .prologue
    .line 18
    sput-boolean p0, Lcom/nemustech/regina/DialogCareSecret;->mHasToggled:Z

    return p0
.end method

.method private changeSecretTitle(Landroid/app/Dialog;I)V
    .locals 10
    .parameter "dlg"
    .parameter "type"

    .prologue
    const v9, 0x7f070077

    const v8, 0x7f05001b

    const v7, 0x7f07007b

    const/4 v6, 0x0

    .line 94
    const v4, 0x7f09003c

    invoke-virtual {p1, v4}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 95
    .local v1, titleTextView1:Landroid/widget/TextView;
    const v4, 0x7f09003d

    invoke-virtual {p1, v4}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 96
    .local v2, titleTextView2:Landroid/widget/TextView;
    const v4, 0x7f09003e

    invoke-virtual {p1, v4}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 97
    .local v3, titleTextView3:Landroid/widget/TextView;
    iget-object v4, p0, Lcom/nemustech/regina/DialogCareSecret;->mResCare:Lcom/nemustech/regina/ResourceCare;

    const v5, 0x7f0600b0

    invoke-virtual {v4, v5}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v0

    .line 98
    .local v0, padding:I
    packed-switch p2, :pswitch_data_0

    .line 123
    :goto_0
    return-void

    .line 100
    :pswitch_0
    invoke-virtual {v1, v9}, Landroid/widget/TextView;->setText(I)V

    .line 101
    const v4, 0x7f07007a

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(I)V

    .line 102
    iget-object v4, p0, Lcom/nemustech/regina/DialogCareSecret;->mReginaLauncherSettings:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncherSettings;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4, v8}, Landroid/content/res/Resources;->getColor(I)I

    move-result v4

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setTextColor(I)V

    .line 103
    invoke-virtual {v2, v0, v6, v0, v6}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 104
    invoke-virtual {v3, v7}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    .line 107
    :pswitch_1
    invoke-virtual {v1, v9}, Landroid/widget/TextView;->setText(I)V

    .line 108
    const v4, 0x7f070079

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(I)V

    .line 109
    iget-object v4, p0, Lcom/nemustech/regina/DialogCareSecret;->mReginaLauncherSettings:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncherSettings;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4, v8}, Landroid/content/res/Resources;->getColor(I)I

    move-result v4

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setTextColor(I)V

    .line 110
    invoke-virtual {v2, v0, v6, v0, v6}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 111
    invoke-virtual {v3, v7}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    .line 114
    :pswitch_2
    const v4, 0x7f070078

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(I)V

    .line 115
    iget-object v4, p0, Lcom/nemustech/regina/DialogCareSecret;->mReginaLauncherSettings:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncherSettings;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f05001c

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v4

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setTextColor(I)V

    .line 116
    const-string v4, ""

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 117
    invoke-virtual {v2, v0, v6, v6, v6}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 118
    invoke-virtual {v3, v7}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    .line 98
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method private clearArray([I)V
    .locals 3
    .parameter "arr"

    .prologue
    .line 85
    if-eqz p1, :cond_0

    array-length v2, p1

    if-lez v2, :cond_0

    .line 86
    array-length v0, p1

    .line 87
    .local v0, cnt:I
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    if-ge v1, v0, :cond_0

    .line 88
    const/4 v2, 0x0

    aput v2, p1, v1

    .line 87
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 91
    .end local v0           #cnt:I
    .end local v1           #i:I
    :cond_0
    return-void
.end method

.method private showBackupProgressDlg(Z)Landroid/app/Dialog;
    .locals 4
    .parameter "isBackup"

    .prologue
    const v2, 0x7f0700f8

    const/4 v3, 0x1

    .line 267
    new-instance v0, Landroid/app/ProgressDialog;

    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mReginaLauncherSettings:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-direct {v0, v1}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    .line 269
    .local v0, progressDialog:Landroid/app/ProgressDialog;
    if-ne p1, v3, :cond_0

    .line 270
    invoke-virtual {v0, v2}, Landroid/app/ProgressDialog;->setTitle(I)V

    .line 271
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mReginaLauncherSettings:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0700f9

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 276
    :goto_0
    invoke-virtual {v0, v3}, Landroid/app/ProgressDialog;->setIndeterminate(Z)V

    .line 277
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    .line 279
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mDialogArray:Landroid/util/SparseArray;

    if-ne p1, v3, :cond_1

    const/4 v2, 0x4

    :goto_1
    invoke-virtual {v1, v2, v0}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 281
    return-object v0

    .line 273
    :cond_0
    invoke-virtual {v0, v2}, Landroid/app/ProgressDialog;->setTitle(I)V

    .line 274
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mReginaLauncherSettings:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0700fa

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 279
    :cond_1
    const/4 v2, 0x5

    goto :goto_1
.end method

.method private showSecretDlg(I)Landroid/app/Dialog;
    .locals 9
    .parameter "type"

    .prologue
    const/4 v4, 0x0

    const/4 v8, 0x3

    const/4 v7, 0x2

    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 126
    new-instance v1, Landroid/app/Dialog;

    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret;->mReginaLauncherSettings:Lcom/nemustech/regina/ReginaLauncherSettings;

    const/high16 v3, 0x7f08

    invoke-direct {v1, v2, v3}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    iput-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDlg:Landroid/app/Dialog;

    .line 127
    const/4 v1, 0x4

    new-array v1, v1, [Landroid/widget/Button;

    iput-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtons:[Landroid/widget/Button;

    .line 129
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDlg:Landroid/app/Dialog;

    invoke-virtual {v1, v6}, Landroid/app/Dialog;->requestWindowFeature(I)Z

    .line 130
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDlg:Landroid/app/Dialog;

    invoke-virtual {v1}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;

    move-result-object v1

    new-instance v2, Landroid/graphics/drawable/ColorDrawable;

    invoke-static {v5, v5, v5, v5}, Landroid/graphics/Color;->argb(IIII)I

    move-result v3

    invoke-direct {v2, v3}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-virtual {v1, v2}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 132
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mLayoutInflater:Landroid/view/LayoutInflater;

    const v2, 0x7f030006

    invoke-virtual {v1, v2, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/nemustech/regina/SecretDialogFrame;

    iput-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDialogFrame:Lcom/nemustech/regina/SecretDialogFrame;

    .line 133
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mLayoutInflater:Landroid/view/LayoutInflater;

    const v2, 0x7f040001

    invoke-virtual {v1, v2, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    .line 134
    .local v0, subLayout:Landroid/widget/FrameLayout;
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDialogFrame:Lcom/nemustech/regina/SecretDialogFrame;

    new-instance v2, Landroid/widget/FrameLayout$LayoutParams;

    iget-object v3, p0, Lcom/nemustech/regina/DialogCareSecret;->mReginaLauncherSettings:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-static {v3}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v3

    iget-object v4, p0, Lcom/nemustech/regina/DialogCareSecret;->mReginaLauncherSettings:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-static {v4}, Lcom/nemustech/regina/RUtils;->getScreenHeightAvailable(Landroid/content/Context;)I

    move-result v4

    invoke-direct {v2, v3, v4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v0, v2}, Lcom/nemustech/regina/SecretDialogFrame;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 137
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtons:[Landroid/widget/Button;

    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDialogFrame:Lcom/nemustech/regina/SecretDialogFrame;

    const v3, 0x7f09003f

    invoke-virtual {v1, v3}, Lcom/nemustech/regina/SecretDialogFrame;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    aput-object v1, v2, v5

    .line 138
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtons:[Landroid/widget/Button;

    aget-object v1, v1, v5

    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtonClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 139
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtons:[Landroid/widget/Button;

    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDialogFrame:Lcom/nemustech/regina/SecretDialogFrame;

    const v3, 0x7f090040

    invoke-virtual {v1, v3}, Lcom/nemustech/regina/SecretDialogFrame;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    aput-object v1, v2, v6

    .line 140
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtons:[Landroid/widget/Button;

    aget-object v1, v1, v6

    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtonClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 141
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtons:[Landroid/widget/Button;

    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDialogFrame:Lcom/nemustech/regina/SecretDialogFrame;

    const v3, 0x7f090041

    invoke-virtual {v1, v3}, Lcom/nemustech/regina/SecretDialogFrame;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    aput-object v1, v2, v7

    .line 142
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtons:[Landroid/widget/Button;

    aget-object v1, v1, v7

    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtonClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 143
    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtons:[Landroid/widget/Button;

    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDialogFrame:Lcom/nemustech/regina/SecretDialogFrame;

    const v3, 0x7f090042

    invoke-virtual {v1, v3}, Lcom/nemustech/regina/SecretDialogFrame;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    aput-object v1, v2, v8

    .line 144
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtons:[Landroid/widget/Button;

    aget-object v1, v1, v8

    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtonClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 146
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDialogFrame:Lcom/nemustech/regina/SecretDialogFrame;

    const v2, 0x7f090043

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/SecretDialogFrame;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtonDone:Landroid/widget/Button;

    .line 147
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtonDone:Landroid/widget/Button;

    new-instance v2, Lcom/nemustech/regina/DialogCareSecret$1;

    invoke-direct {v2, p0, p1}, Lcom/nemustech/regina/DialogCareSecret$1;-><init>(Lcom/nemustech/regina/DialogCareSecret;I)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 201
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDialogFrame:Lcom/nemustech/regina/SecretDialogFrame;

    const v2, 0x7f090044

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/SecretDialogFrame;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtonCancel:Landroid/widget/Button;

    .line 202
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretButtonCancel:Landroid/widget/Button;

    new-instance v2, Lcom/nemustech/regina/DialogCareSecret$2;

    invoke-direct {v2, p0, p1}, Lcom/nemustech/regina/DialogCareSecret$2;-><init>(Lcom/nemustech/regina/DialogCareSecret;I)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 210
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDlg:Landroid/app/Dialog;

    invoke-virtual {v1, v5}, Landroid/app/Dialog;->setCancelable(Z)V

    .line 211
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDlg:Landroid/app/Dialog;

    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDialogFrame:Lcom/nemustech/regina/SecretDialogFrame;

    invoke-virtual {v1, v2}, Landroid/app/Dialog;->setContentView(Landroid/view/View;)V

    .line 213
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDlg:Landroid/app/Dialog;

    invoke-direct {p0, v1, p1}, Lcom/nemustech/regina/DialogCareSecret;->changeSecretTitle(Landroid/app/Dialog;I)V

    .line 214
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mDialogArray:Landroid/util/SparseArray;

    iget-object v2, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDlg:Landroid/app/Dialog;

    invoke-virtual {v1, p1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 216
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretDlg:Landroid/app/Dialog;

    return-object v1
.end method


# virtual methods
.method public closeCurrentDialog()V
    .locals 1

    .prologue
    .line 71
    iget v0, p0, Lcom/nemustech/regina/DialogCareSecret;->mCurrentDialogType:I

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/DialogCareSecret;->closeDialogByType(I)V

    .line 72
    return-void
.end method

.method public closeDialogByType(I)V
    .locals 3
    .parameter "type"

    .prologue
    .line 75
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mDialogArray:Landroid/util/SparseArray;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mDialogArray:Landroid/util/SparseArray;

    invoke-virtual {v1}, Landroid/util/SparseArray;->size()I

    move-result v1

    if-lez v1, :cond_0

    .line 76
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mDialogArray:Landroid/util/SparseArray;

    invoke-virtual {v1, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/Dialog;

    .line 77
    .local v0, dlg:Landroid/app/Dialog;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_0

    .line 78
    invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V

    .line 79
    iget-object v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mDialogArray:Landroid/util/SparseArray;

    invoke-virtual {v1, p1}, Landroid/util/SparseArray;->remove(I)V

    .line 82
    .end local v0           #dlg:Landroid/app/Dialog;
    :cond_0
    return-void
.end method

.method public createDialog(I)Landroid/app/Dialog;
    .locals 1
    .parameter "type"

    .prologue
    .line 289
    packed-switch p1, :pswitch_data_0

    .line 299
    const/4 v0, 0x0

    :goto_0
    return-object v0

    .line 293
    :pswitch_0
    invoke-direct {p0, p1}, Lcom/nemustech/regina/DialogCareSecret;->showSecretDlg(I)Landroid/app/Dialog;

    move-result-object v0

    goto :goto_0

    .line 296
    :pswitch_1
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    const/4 v0, 0x1

    :goto_1
    invoke-direct {p0, v0}, Lcom/nemustech/regina/DialogCareSecret;->showBackupProgressDlg(Z)Landroid/app/Dialog;

    move-result-object v0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    goto :goto_1

    .line 289
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_1
        :pswitch_1
    .end packed-switch
.end method

.method public getDialogByType(I)Landroid/app/Dialog;
    .locals 1
    .parameter "type"

    .prologue
    .line 285
    iget-object v0, p0, Lcom/nemustech/regina/DialogCareSecret;->mDialogArray:Landroid/util/SparseArray;

    invoke-virtual {v0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Landroid/app/Dialog;

    return-object p0
.end method

.method public initSecretNumbers()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 60
    const/16 v0, 0x14

    new-array v0, v0, [I

    iput-object v0, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretNumbers:[I

    .line 61
    iput v1, p0, Lcom/nemustech/regina/DialogCareSecret;->mSecretNumbersIndex:I

    .line 62
    sput-boolean v1, Lcom/nemustech/regina/DialogCareSecret;->mHasToggled:Z

    .line 63
    return-void
.end method

.method public popDialog(I)V
    .locals 1
    .parameter "type"

    .prologue
    .line 66
    iput p1, p0, Lcom/nemustech/regina/DialogCareSecret;->mCurrentDialogType:I

    .line 67
    iget-object v0, p0, Lcom/nemustech/regina/DialogCareSecret;->mReginaLauncherSettings:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-virtual {v0, p1}, Lcom/nemustech/regina/ReginaLauncherSettings;->showDialog(I)V

    .line 68
    return-void
.end method
